package com.feri.project.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class Ad {

    private Integer id;


    private String name;


    private String location;


    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date begintime;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date endtime;


    private Integer flag;


    private Integer num;


    public Integer getId() {
        return id;
    }


    public void setId(Integer id) {
        this.id = id;
    }


    public String getName() {
        return name;
    }


    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }


    public String getLocation() {
        return location;
    }


    public void setLocation(String location) {
        this.location = location == null ? null : location.trim();
    }


    public Date getBegintime() {
        return begintime;
    }


    public void setBegintime(Date begintime) {
        this.begintime = begintime;
    }


    public Date getEndtime() {
        return endtime;
    }


    public void setEndtime(Date endtime) {
        this.endtime = endtime;
    }


    public Integer getFlag() {
        return flag;
    }


    public void setFlag(Integer flag) {
        this.flag = flag;
    }


    public Integer getNum() {
        return num;
    }


    public void setNum(Integer num) {
        this.num = num;
    }
}